import request from '../../../api/req'

// 查询日保方案
export const getwesureplanlistapi = async (data: any) => {
    let res = await request.get(`/wesure/wesure-plan/list`, {
        params: data
    })
    return res
}

// 查询日保保司
export const getquerydailyinsurancecompanyapi = async () => {
    let res = await request.get(`/insur/insurComInsuranceCompany/query-daily-insurance-company`)
    return res
}

// 查询保障范围列表
export const getwesureplandictapi = async () => {
    let res = await request.get(`/wesure/wesure-plan/wesure-plan-dict`)
    return res
}

// 根据保司获取方案列表
export const getquerydailycompanysolutionapi = async (data: any) => {
    let res = await request.get(`/insur/insurComInsuranceCompany/query-daily-company-solution`, {
        params: data
    })
    return res
}

// 新增方案
export const addwesureplanapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-plan`, {
        data: data
    })
    return res
}

// 获取保险方案详细信息
export const getwesureplandetailapi = async (id: any) => {
    let res = await request.get(`/wesure/wesure-plan/${id}`)
    return res
}

// 修改方案
export const changewesureplanapi = async (data: any) => {
    let res = await request.put(`/wesure/wesure-plan`, {
        data: data
    })
    return res
}

// 生成方案数据
export const addwesureplangeneratePlanapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-plan/generatePlan`, {
        data: data
    })
    return res
}

// 查询行业列表
export const getwesureindustrylistapi = async (data: any) => {
    let res = await request.get(`/wesure/wesure-industry/list`, {
        params: data
    })
    return res
}

// 新增投保行业
export const addwesureindustryapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-industry`, data)
    return res
}

// 修改行业
export const changewesureindustryneweditapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-industry/new-edit`, data)
    return res
}

// 获取投保行业详细信息
export const getwesureindustrygetinfoidsapi = async (ids: any) => {
    let res = await request.get(`/wesure/wesure-industry/get-info-ids/${ids}`)
    return res
}

// 查询行业方案列表
export const getwesureindustryplanlistapi = async (data: any) => {
    let res = await request.get(`/wesure/wesure-industry-plan/list`, {
        params: data
    })
    return res
}

// 编辑行业方案
export const editindustryplanapi = async (data: any) => {
    let res = await request.put(`/wesure/wesure-industry-plan/edit-industry-plan`, data)
    return res
}

// 方案改价
export const changemodifyindustryplanpriceapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-industry-plan/modify-industry-plan-price`, data)
    return res
}

// 查询日保方案列表
export const getwesureplanlistbymonthapi = async (data: any) => {
    let res = await request.get(`/wesure/wesure-plan/list-by-month`, {
        params: data
    })
    return res
}

// 查询方案改价记录
export const getquerymodifyindustryplanlistapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-industry-plan/query-modify-industry-plan-list`, data)
    return res
}

// 添加行业方案
export const addwesureindustryplanapi = async (data: any) => {
    let res = await request.post(`/wesure/wesure-industry-plan`, data)
    return res
}

// 查询保司管理列表
export const getinsurComInsuranceCompanylistapi = async (data: any) => {
    let res = await request.get(`/insur/insurComInsuranceCompany/list`, {
        params: data
    })
    return res
}

// 新增保司 
export const addinsurecompanyapi = async (data: any) => {
    let res = await request.post(`/insur/insurComInsuranceCompany/edit`, data)
    return res
}

// 删除保司
export const delinsurComInsuranceCompanyapi = async (ids: any) => {
    let res = await request.delete(`/insur/insurComInsuranceCompany/${ids}`)
    return res
}

// 查询保司方案列表
export const getinsurComInsuranceCompanygetSchemeapi = async (data: any) => {
    let res = await request.get(`/insur/insurComInsuranceCompany/getScheme`, { params: data })
    return res
}

// 查询保司方案保单号
export const getpolicylistapi = async (data: any) => {
    let res = await request.get(`/com-insur/insur-com-company-policy/policy-list`, { params: data })
    return res
}

// 删除保司方案
export const deleteSchemesapi = async (id: any) => {
    let res = await request.delete(`/insur/insurComInsuranceCompany/deleteSchemes/${id}`)
    return res
}

// 新增/修改保司方案
export const addorchangeSchemeapi = async (data: any) => {
    let res = await request.post(`/insur/insurComInsuranceCompany/addScheme`, data)
    return res
}

// 新增
export const insertpolicyapi = async (data: any) => {
    let res = await request.post(`/com-insur/insur-com-company-policy/insert-policy`, data)
    return res
}
// 日保修改行业获取行业
export const getdayinsurejoblistapi = async (data: any) => {
    let res = await request.get(`/wesure/wesure-industry/list`, { params: data })
    return res
}

// 修改保单号
export const editpolicyapi = async (data: any) => {
    let res = await request.post(`/com-insur/insur-com-company-policy/edit-policy`, data)
    return res
}